/********************************************************************************
*																				*
*  Las Venturas Playground - callbacks/onScriptInit.nut							*
*																				*
*  The onScriptInit callback is located here.									*
*																				*
********************************************************************************/

function onScriptInit()
{
	// Spawn the vehicles
	spawnVehicle();
	
	// The server has succesfully started
	log("\n-----------------------------------");
	log("LVP:IV Loaded");
	log("-----------------------------------\n");
	
	// Create a new instance of the MySQL class.
	local Database = MySQL("hostname", "user", "pass", "database");
	
	// Connect to the database
	Database.Connect();
	
	// Wait, are we actually connected?
	if(Database.isConnected()) 
	{
		log("Connected!");
	}
	else
	{
		log("Failed to connect");
	}
	return 1;
}

addEvent("scriptInit", onScriptInit);